<include file="Public:header" />
<div id="main" class="main" >
<div class="content">
<div class="title">编辑菜单 [ <a href="__URL__">返回列表</a> ]</div>
<form method='post'  id="form1" action="__URL__/update">
<table cellpadding=3 cellspacing=3 >
<tr> 
	<td class="tRight tTop">父级菜单：</td>
	<td class="tLeft"><select name="pid" id="pid">
		<option value="0" <if condition="$vo['pid'] eq 0">selected="selected"</if>>请选择栏目父级菜单</option>
		{$menu_tree}
		</select></td>
</tr>
<tr>
	<td class="tRight" >菜单名称：</td>
	<td class="tLeft" ><input type="text" class="medium bLeftRequire" check='Require' warning="名称不能为空,且不能含有空格"  name="name" value="{$vo.name}"></td>
</tr>
<tr>
	<td class="tRight" >简称：</td>
	<td class="tLeft" ><input type="text" class="medium bLeftRequire" name="brief_name" value="{$vo.brief_name}"></td>
</tr>

<tr>
	<td class="tRight" >操作：</td>
	<td class="tLeft" ><input type="text" class="medium bLeftRequire" name="action" value="{$vo.action}"></td>
</tr>
<tr class="row" ><td class="tRight" width="25%">会员类型：</td>
 <td>

 <volist name="role_names"  id="vo1">
 <INPUT TYPE="checkbox" NAME="key[]" value="{$vo1.id}" 
 <?php if(strstr($keyid,$vo1['id'])){echo "checked";}?>
 />{$vo1.name}
</volist>
</td>
</tr>
<tr>
	<td class="tRight">打开：</td>
	<td class="tLeft">
	<input type="radio" name="isopen" value="0" <if condition="$vo['isopen'] eq 0"> checked="checked"</if> />否
	<input type="radio" name="isopen" value="1" <if condition="$vo['isopen'] eq 1"> checked="checked"</if> />是（选是时，在有子菜单的情况下处于打开状态）
	</td>
</tr>
<tr>
	<td class="tRight">有子菜单：</td>
	<td class="tLeft">
	<input type="radio" name="isfolder" value="0" <if condition="$vo['isfolder'] eq 0"> checked="checked"</if> />否
	<input type="radio" name="isfolder" value="1" <if condition="$vo['isfolder'] eq 1"> checked="checked"</if> />是（选是时，可以折叠）
	</td>
</tr>
<tr>
	<td class="tRight">栏目数据：</td>
	<td class="tLeft">
	<input type="radio" name="iscategory" value="0" <if condition="$vo['iscategory'] eq 0"> checked="checked"</if> />否
	<input type="radio" name="iscategory" value="1" <if condition="$vo['iscategory'] eq 1"> checked="checked"</if> />是（选是时可以接受来自栏目（表category)的菜单数据）
	</td>
</tr>

<tr>
	<td class="tRight">状态：</td>
	<td class="tLeft"><SELECT class="small bLeft"  name="status">
	<option <eq name="vo.status" value="1" >selected</eq> value="1">启用</option>
	<option <eq name="vo.status" value="0" >selected</eq> value="0">禁用</option>
	</SELECT></td>
</tr>
<tr>
	<td></td>
	<td class="center"><div style="width:85%;margin:5px"><input type="hidden" name="id" value="{$vo.id}" >
	<div class="impBtn fLeft"><input type="submit" value="保存" class="save imgButton"></div>
	<div class="impBtn fRig"><input type="reset" onclick="history.back(-1)" class="reset imgButton" value="取消" ></div>
	</div></td>
</tr>
</table>
</form>
</div>
</div>
